#ifndef TEST_CLASS_H
#define TEST_CLASS_H

#include <iostream>
using namespace std;

class TestClass
{
public:
    explicit TestClass(int num)
        : num(num)
    {
        cout << "TestClass" << endl;
    }
    ~TestClass()
    {
        cout << "~TestClass" << endl;
    }

    int getNum() const
    {
        return num;
    }

    void setNum(int num)
    {
        this->num = num;
    }

    void setData(const string &d)
    {
        data = d;
    }

    string getData() const
    {
        return data;
    }

private:
    int num;
    string data;
};

#endif //TEST_CLASS_H
